﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="database.DAO, golf.Server"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>서버선택</title>
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<h1>서버 선택</h1>

<form name="form1" method="post" action="../post/postSelectServer.jsp" >
    <table cellpadding="0" cellspacing="0" bordercolordark="white" bordercolorlight="black" width="21%">
        <tr>
            <td width="164"><span style="font-size:9pt;">서버선택</span></td>
            <td width="121">

                <p><span style="font-size:9pt;"><select name="server" size="1">
                <% 
                DAO dao = DAO.getInstance();
                Server[] servers = dao.getServerList();
                for( int i = 0; i < servers.length; i++ ){
                	out.println("<option value=\"" + servers[i].getNo() + "\">" + servers[i].getName() + "</option>" );	
                }
                
                %>
</select></span></p>
            </td>
        </tr>
        <tr>
            <td width="164">
                <p><span style="font-size:9pt;"><input type="submit" name="okay" value="서버 입장"></span></p>
            </td>
            <td width="121"><span style="font-size:9pt;">&nbsp;</span></td>
        </tr>
    </table>
    
</form>
<p>&nbsp;</p>
</body>

</html>